package com.opentae.data.mall.examples;

import com.opentae.core.mybatis.SgExample;
import com.opentae.core.mybatis.example.EntityColumn;
import com.opentae.core.mybatis.example.EntityTable;
import com.opentae.core.mybatis.mapperhelper.EntityHelper;
import com.opentae.data.mall.beans.MallTask;

import java.util.*;
public class MallTaskExample extends SgExample<MallTaskExample.Criteria> {
    public static final Class<MallTask> beanClass = MallTask.class;
    public static final EntityTable entityTable = EntityHelper.getEntityTable(beanClass);
    public static EntityColumn moneyAward;
    public static EntityColumn taskType;
    public static EntityColumn award;
    public static EntityColumn icon;
    public static EntityColumn title;
    public static EntityColumn taskId;
    static {
        Set<EntityColumn> columns = entityTable.getEntityClassColumns();
        Map<String, EntityColumn> listMap = new HashMap<>();
        for (EntityColumn column : columns) {
            listMap.put(column.getProperty(), column);
        }
        moneyAward = listMap.get("moneyAward");
        taskType = listMap.get("taskType");
        award = listMap.get("award");
        icon = listMap.get("icon");
        title = listMap.get("title");
        taskId = listMap.get("taskId");
        }

    public MallTaskExample() {
        this.setTableAlias(entityTable.getName());
    }

    @Override
    public EntityTable getEntityTable() {
        return entityTable;
    }

    @Override
    protected MallTaskExample.Criteria createCriteriaInternal() {
        return new MallTaskExample.Criteria(this);
    }

    public static class Criteria extends SgExample.GeneratedCriteria<Criteria> {
        protected Criteria(SgExample example) {
            super(example);
        }

        public MallTaskExample.Criteria andMoneyAwardIsNull() {
            return isNull(moneyAward);
        }

        public MallTaskExample.Criteria andMoneyAwardIsNotNull() {
            return isNotNull(moneyAward);
        }

        public MallTaskExample.Criteria andMoneyAwardEqualTo(Integer value) {
            return equalTo(moneyAward, value);
        }

        public MallTaskExample.Criteria andMoneyAwardNotEqualTo(Integer value) {
            return notEqualTo(moneyAward, value);
        }

        public MallTaskExample.Criteria andMoneyAwardGreaterThan(Integer value) {
            return greaterThan(moneyAward, value);
        }

        public MallTaskExample.Criteria andMoneyAwardGreaterThanOrEqualTo(Integer value) {
            return greaterThanOrEqualTo(moneyAward, value);
        }

        public MallTaskExample.Criteria andMoneyAwardLessThan(Integer value) {
            return lessThan(moneyAward, value);
        }

        public MallTaskExample.Criteria andMoneyAwardLessThanOrEqualTo(Integer value) {
            return lessThanOrEqualTo(moneyAward, value);
        }

        public MallTaskExample.Criteria andMoneyAwardIn(List<Integer> values) {
            return in(moneyAward, values);
        }

        public MallTaskExample.Criteria andMoneyAwardNotIn(List<Integer> values) {
            return notIn(moneyAward, values);
        }

        public MallTaskExample.Criteria andMoneyAwardBetween(Integer value1, Integer value2) {
            return between(moneyAward, value1, value2);
        }

        public MallTaskExample.Criteria andMoneyAwardNotBetween(Integer value1, Integer value2) {
            return notBetween(moneyAward, value1, value2);
        }
        public MallTaskExample.Criteria andTaskTypeIsNull() {
            return isNull(taskType);
        }

        public MallTaskExample.Criteria andTaskTypeIsNotNull() {
            return isNotNull(taskType);
        }

        public MallTaskExample.Criteria andTaskTypeEqualTo(Integer value) {
            return equalTo(taskType, value);
        }

        public MallTaskExample.Criteria andTaskTypeNotEqualTo(Integer value) {
            return notEqualTo(taskType, value);
        }

        public MallTaskExample.Criteria andTaskTypeGreaterThan(Integer value) {
            return greaterThan(taskType, value);
        }

        public MallTaskExample.Criteria andTaskTypeGreaterThanOrEqualTo(Integer value) {
            return greaterThanOrEqualTo(taskType, value);
        }

        public MallTaskExample.Criteria andTaskTypeLessThan(Integer value) {
            return lessThan(taskType, value);
        }

        public MallTaskExample.Criteria andTaskTypeLessThanOrEqualTo(Integer value) {
            return lessThanOrEqualTo(taskType, value);
        }

        public MallTaskExample.Criteria andTaskTypeIn(List<Integer> values) {
            return in(taskType, values);
        }

        public MallTaskExample.Criteria andTaskTypeNotIn(List<Integer> values) {
            return notIn(taskType, values);
        }

        public MallTaskExample.Criteria andTaskTypeBetween(Integer value1, Integer value2) {
            return between(taskType, value1, value2);
        }

        public MallTaskExample.Criteria andTaskTypeNotBetween(Integer value1, Integer value2) {
            return notBetween(taskType, value1, value2);
        }
        public MallTaskExample.Criteria andAwardIsNull() {
            return isNull(award);
        }

        public MallTaskExample.Criteria andAwardIsNotNull() {
            return isNotNull(award);
        }

        public MallTaskExample.Criteria andAwardEqualTo(String value) {
            return equalTo(award, value);
        }

        public MallTaskExample.Criteria andAwardNotEqualTo(String value) {
            return notEqualTo(award, value);
        }

        public MallTaskExample.Criteria andAwardGreaterThan(String value) {
            return greaterThan(award, value);
        }

        public MallTaskExample.Criteria andAwardGreaterThanOrEqualTo(String value) {
            return greaterThanOrEqualTo(award, value);
        }

        public MallTaskExample.Criteria andAwardLessThan(String value) {
            return lessThan(award, value);
        }

        public MallTaskExample.Criteria andAwardLessThanOrEqualTo(String value) {
            return lessThanOrEqualTo(award, value);
        }

        public MallTaskExample.Criteria andAwardLike(String value) {
            return like(award, value);
        }

        public MallTaskExample.Criteria andAwardNotLike(String value) {
            return notLike(award, value);
        }

        public MallTaskExample.Criteria andAwardIn(List<String> values) {
            return in(award, values);
        }

        public MallTaskExample.Criteria andAwardNotIn(List<String> values) {
            return notIn(award, values);
        }

        public MallTaskExample.Criteria andAwardBetween(String value1, String value2) {
            return between(award, value1, value2);
        }

        public MallTaskExample.Criteria andAwardNotBetween(String value1, String value2) {
            return notBetween(award, value1, value2);
        }
        public MallTaskExample.Criteria andIconIsNull() {
            return isNull(icon);
        }

        public MallTaskExample.Criteria andIconIsNotNull() {
            return isNotNull(icon);
        }

        public MallTaskExample.Criteria andIconEqualTo(String value) {
            return equalTo(icon, value);
        }

        public MallTaskExample.Criteria andIconNotEqualTo(String value) {
            return notEqualTo(icon, value);
        }

        public MallTaskExample.Criteria andIconGreaterThan(String value) {
            return greaterThan(icon, value);
        }

        public MallTaskExample.Criteria andIconGreaterThanOrEqualTo(String value) {
            return greaterThanOrEqualTo(icon, value);
        }

        public MallTaskExample.Criteria andIconLessThan(String value) {
            return lessThan(icon, value);
        }

        public MallTaskExample.Criteria andIconLessThanOrEqualTo(String value) {
            return lessThanOrEqualTo(icon, value);
        }

        public MallTaskExample.Criteria andIconLike(String value) {
            return like(icon, value);
        }

        public MallTaskExample.Criteria andIconNotLike(String value) {
            return notLike(icon, value);
        }

        public MallTaskExample.Criteria andIconIn(List<String> values) {
            return in(icon, values);
        }

        public MallTaskExample.Criteria andIconNotIn(List<String> values) {
            return notIn(icon, values);
        }

        public MallTaskExample.Criteria andIconBetween(String value1, String value2) {
            return between(icon, value1, value2);
        }

        public MallTaskExample.Criteria andIconNotBetween(String value1, String value2) {
            return notBetween(icon, value1, value2);
        }
        public MallTaskExample.Criteria andTitleIsNull() {
            return isNull(title);
        }

        public MallTaskExample.Criteria andTitleIsNotNull() {
            return isNotNull(title);
        }

        public MallTaskExample.Criteria andTitleEqualTo(String value) {
            return equalTo(title, value);
        }

        public MallTaskExample.Criteria andTitleNotEqualTo(String value) {
            return notEqualTo(title, value);
        }

        public MallTaskExample.Criteria andTitleGreaterThan(String value) {
            return greaterThan(title, value);
        }

        public MallTaskExample.Criteria andTitleGreaterThanOrEqualTo(String value) {
            return greaterThanOrEqualTo(title, value);
        }

        public MallTaskExample.Criteria andTitleLessThan(String value) {
            return lessThan(title, value);
        }

        public MallTaskExample.Criteria andTitleLessThanOrEqualTo(String value) {
            return lessThanOrEqualTo(title, value);
        }

        public MallTaskExample.Criteria andTitleLike(String value) {
            return like(title, value);
        }

        public MallTaskExample.Criteria andTitleNotLike(String value) {
            return notLike(title, value);
        }

        public MallTaskExample.Criteria andTitleIn(List<String> values) {
            return in(title, values);
        }

        public MallTaskExample.Criteria andTitleNotIn(List<String> values) {
            return notIn(title, values);
        }

        public MallTaskExample.Criteria andTitleBetween(String value1, String value2) {
            return between(title, value1, value2);
        }

        public MallTaskExample.Criteria andTitleNotBetween(String value1, String value2) {
            return notBetween(title, value1, value2);
        }
        public MallTaskExample.Criteria andTaskIdIsNull() {
            return isNull(taskId);
        }

        public MallTaskExample.Criteria andTaskIdIsNotNull() {
            return isNotNull(taskId);
        }

        public MallTaskExample.Criteria andTaskIdEqualTo(Long value) {
            return equalTo(taskId, value);
        }

        public MallTaskExample.Criteria andTaskIdNotEqualTo(Long value) {
            return notEqualTo(taskId, value);
        }

        public MallTaskExample.Criteria andTaskIdGreaterThan(Long value) {
            return greaterThan(taskId, value);
        }

        public MallTaskExample.Criteria andTaskIdGreaterThanOrEqualTo(Long value) {
            return greaterThanOrEqualTo(taskId, value);
        }

        public MallTaskExample.Criteria andTaskIdLessThan(Long value) {
            return lessThan(taskId, value);
        }

        public MallTaskExample.Criteria andTaskIdLessThanOrEqualTo(Long value) {
            return lessThanOrEqualTo(taskId, value);
        }

        public MallTaskExample.Criteria andTaskIdIn(List<Long> values) {
            return in(taskId, values);
        }

        public MallTaskExample.Criteria andTaskIdNotIn(List<Long> values) {
            return notIn(taskId, values);
        }

        public MallTaskExample.Criteria andTaskIdBetween(Long value1, Long value2) {
            return between(taskId, value1, value2);
        }

        public MallTaskExample.Criteria andTaskIdNotBetween(Long value1, Long value2) {
            return notBetween(taskId, value1, value2);
        }
    }
}